from tfpp.object.object import Object, MetaObject

class MetaUser(MetaObject):
    def get_properties(self):
        return ('first_name',
                'last_name',
                'email',)
    
    def get_clazz(self):
        return User

class User(Object):
    def as_text(self):
        return "User(first_name='%s', last_name='%s')" % (self.data['first_name'], self.data['last_name'])

    def as_html(self):
        return self.as_text(self)
